<link rel="stylesheet" type="text/css" href="<?=MY_URL?>/html/styles/shop/shop_buy.css" media="screen" />
<h1 class="ThisPosition" style="background-color:#B20000;margin:10px;">Cart &amp; Checkout</h1>
<style>
	.moneyTable td{
		padding:10px;
	}
.sub{
		background:url(../images/sprite.png)  no-repeat 9999px 9999px;
		width:166px; height:28px; cursor:pointer; background-position:-204px -1614px; border:0 none; color:#FFF; font-weight:bold; font-size:13px;
		margin-top: 4px;
}
</style>
<div align="center" style="margin-top:10px;">
	<table class="moneyTable" border="1" cellpadding="0" cellspacing="0" bordercolor="#c8d9e9">
		<tr>
			 <td colspan="2" class="se" align="center">
			 	<div><img src="/images/westernunion.jpg" /></div>
				<div>Western Union payment</div>
			 </td>
    	</tr>
		<tr>
			<td>Amounts</td><td>$<?=$this->total?></td>
		</tr>
		<tr>
			<td>Order Id</td><td>G<?=$this->id?></td>
		</tr>
		
		<tr>
			<td colspan="2" style="text-align:left;line-height:30px;">
				<h3>Western union payment information:</h3>
				<div>Name：First name: Xi   Last name:Luo
				<br/><span style="color:red">Just get money from this Western Union receiver name!</span>
				</div>
				<div>National：China</div>
				<h3>Bank transfer information:</h3>
				<div>Account number:  662658006656</div>
				<div>Benficiary name: Liangcheng Li</div>
				<div>Bank name: Bank of China Guangdong Branch Cha Jiao Sub-Branch</div>
				<div>Bank Address: 7-9, Yuecheng Road, GuangZhou China</div>
				<div>Bank Swift Code: BKCHCNBJ400</div>
				<div><a href="http://www.westernunion.com/" target="_blank" style="text-decoration:underline;">Pay on the Western Union's Home Page &gt;&gt;</a></div>
			</td>
		</tr>
		
		<tr>
			<td>Payment MTCN</td><td><input type="text" name="mtcn"></input></td>
		</tr>
		<tr>
			<td>Payment Sender Name</td><td><input type="text" name="sendname"></input></td>
		</tr>
		
		<tr>
			<td colspan="2" align="center"><input type="button" onclick="west_submit()" class="sub" value="Submit"/></td>
		</tr>
		
	</table>
</div>
<script>
	function west_submit()
	{
		mtcn = $('input[name="mtcn"]').val();
		sendname = $('input[name="sendname"]').val();
		if (mtcn == '' || sendname == '') {
			GGSHOP.msgBox.show('ERROR', 'Please fill in Payment MTCN or Payment Sender Name');
			return ;
		}
		$.ajax({
			type: "GET",
			url: "/pay-westcn?id=<?php echo $this->id;?>&mtcn="+mtcn+"&sendname="+sendname,
			success: function(data) {						
				switch(data) {		
					case "0":
						GGSHOP.msgBox.show('Error', 'Error');
						break;
					case "1":
						GGSHOP.msgBox.show('Success', 'Success');
						break;					
					default:
						GGSHOP.msgBox.show('Error', 'No Address');						
				}
			}			
		});
	}
</script>